<div class="content">
	<div class="div-top" ng-hide="form.show">
		<span style="font-size: 20px;float:left;">{{menu_name}}</span>
		<div style="float:right;">
			<button ng-repeat="but in buttons" ng-click="clickBtn(but.event)" class="btn btn-{{but.style}}"><i class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}</button>
			<button ng-click="downloadTemplate()" type="button" class="btn btn-success">
				<i class="iconfont icon-project-file"></i> 专业编码
			</button>
			<button ng-click="downloadTemplate()" type="button" class="btn btn-success">
				<i class="iconfont icon-project-file"></i> 自动分班
			</button>
			<button ng-click="downloadTemplate()" type="button" class="btn btn-success">
				<i class="iconfont icon-project-file"></i> 下载模板
			</button>
			<button ng-click="major()" type="button" class="btn btn-success">
				<i class="iconfont"></i> 专业编码
			</button>
			<button ng-click="import()" type="button" class="btn btn-primary">
				<i class="iconfont icon-Import-01"></i> 导入
			</button>
		</div>
	</div>

	<form class="div-find form-inline">
		<div class="form-group">
			<label class="form-label">年级：</label>
			<select class="form-control" ng-options="grade.id as grade.name for grade in gradeList" ng-model="form.fk_grade" ng-change="findClass()">
				<option value="">==请选择==</option>
			</select>
		</div>
		<div class="form-group">
			<label class="form-label">专业：</label>
			<input ng-model="form.major" type="text" class="form-control"/>
		</div>
		<button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询</button>
	</form>

	<div class="div-table">
		<table class="table table-hover  table-bordered">
			<thead>
			<tr>
				<th class="table-th-checkbox"><input type="checkbox" ng-click="checkAll($event.target)" /></th>
				<th column="class_name" class="sorting" ng-click="order($event.target)">班级名称</th>
				<th column="sort" class="sorting" ng-click="order($event.target)">班号</th>
				<th column="grade_sort" class="sorting" ng-click="order($event.target)">年级</th>
				<th column="stucount" class="sorting" ng-click="order($event.target)">班级人数</th>
				<!--<th>操作</th>-->
			</tr>
			</thead>

			<tbody ng-switch on="page.current_num">
			<tr ng-switch-when="0">
				<td colspan="100">查询无记录</td>
			</tr>
			<tr ng-repeat="row in rows " ng-click="optData($event.currentTarget)">
				<td>	<input type="checkbox" name="dataPk" value="{{row.id}}" /></td>
				<td>{{row.class_name}}</td>
				<td>{{row.sort}}</td>
				<td>{{row.grade_name}}</td>
				<td>{{row.stucount}}</td>
				<!--				<td>-->
				<!--					<button ng-click="addStudent(row)" type="button" class="btn btn-warning">添加学生</button>-->
				<!--				</td>-->
			</tr>
			</tbody>
		</table>
	</div>
	<div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
</div>